const path = require('path');
const resolve = (dir) => path.join(__dirname, '.', dir);

module.exports = {
  productionSourceMap: false,
  // publicPath: './',
  // outputDir: 'dist',
  // assetsDir: 'assets',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://127.0.0.1:70',
        changeOrigin: true,
        pathRewrite: {
          '^/api': '/api'
        },
      }
    }
  },
  chainWebpack: (config) => {
    config.resolve.alias
        .set('@', resolve('src'))
  },
}

